package tool

import play.api.data.Form
import play.api.data.Forms._
import tool.Pojo._

/**
 * Created by yz on 9/5/2020
 */
object FormTool {

  val expressPatternForm = Form(
    mapping(
      "sampleNameStr" -> text,
      "method" -> text,
      "cMethod" -> text,
      "pTree" -> text,
      "kTree" -> text,
      "k" -> text,
      "sampleDist" -> text,
      "sampleCluster" -> text
    )(ExpressPatternData.apply)(ExpressPatternData.unapply)
  )

  val geneIdStrForm = Form(
    mapping(
      "geneIdStr" -> text
    )(GeneIdStrData.apply)(GeneIdStrData.unapply)
  )

}
